﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace Project.API
{
    public class GoodDto
    {
        public int GID { get; set; }
        public string Name { get; set; }
        public string Content { get; set; }
        public string Images { get; set; }
        public bool Use_Spec { get; set; }
        public bool Use_Property { get; set; }
        public string Unit { get; set; }
        public decimal Price { get; set; }
        public int Sales { get; set; }
        public int Sort { get; set; }
        public int GTID { get; set; }

        public string TypeName { get; set; }
        public IEnumerable<GoodPropertyKeyDto> GoodPropertyKey { get; set; }
    }

    public class GoodPropertyKeyDto {
        public int GPKID { get; set; }
        public string  Name { get; set; }
        public int GSKID { get; set; }
        public IEnumerable<GoodPropertyValueDto> GoodPropertyValue { get; set; }
    }

    public class GoodPropertyValueDto
    {
        public int GPVID { get; set; }
        public bool Is_Default { get; set; }
        public int GSVID { get; set; }
        public string Code { get; set; }
        public string Value { get; set; }
    }


}